moved args check location