replace xml config with annotations