error handling, change port