dev mode helper method