implement %source and %s marks