updated allowed classes to something better, added allow atrributes