attrs put back in 'main'