added checks for serverside methods