make laoding scripts a bit more portable