stuff for @mainerror