fix psr2 compatibility