fix requires and constants