changed ports and added function prototypes