removed if:main statement to see if that is causing failures when script is invoked at boot