check args in constructor on client-side