now possible to get logic from frontend

but not used properly yet