move mobile flag to hlper