this script needs work. at0 interface is hardcoded everywhere