layout
added support for 't' and 'f'