fix admin and add rake task