fix behavior for 'dev' query param