try catching main declaration earlier