minor refactor of register_fixture