fixed timeout issues with gen_server