debugging why the mobile flag is not getting through