fix usage and compilinger warnings