updated allow callback