updated ci and utils

fixed a bunch of minor bugs