initial implementation for Rev1, i commited because sidi and seyyid ahmed will be needed