fixed call of init ports
init ports for polling script