Chosen Solution

i have a problem with my phone were it wont connect to the internet I did some research and found that the file that probably had the problem was located under /system/etc/dhcpcd/dhcpcd-run-hooks so i deleted the file and now im wondering if there is anyway to get it back without reflashing your original stock rom.

Get wifi manager from the play store. See if that fixes it.