server now checks for correct method