ugly backend working