fixes bnchdrff/gnl_profile#3, fixes bnchdrff/gnl_profile#4