fixed white list bug, cleaned up error output