prod and dev side for debug