added script to drain battery automatically