sort code to frontend and backend
function exists for merged plugins