Some form of json wrapper
ignoring pid files