allow to set custom gsleep