use active variable in server loops