[WIP] problems in leaving and entering