use const in error messages
add limiting of size to read service